/* 首页路由 */
let HomeRoutes = [
  {
    path: '/home/documentParse',
    component: (resolve) => require(['@/view/home/documentParse.vue'], resolve),
    name: 'documentParse',
    meta: {
      title: '文档解析', icon: 'aboutUs', iconSelect: 'documentParse'
    }
  },
  {
      path: '/home/pictureManage',
      component: (resolve) => require(['@/view/home/pictureManage.vue'], resolve),
      name: 'pictureManage',
      meta: {
          title: '图片管理', icon: 'pictureManage', iconSelect: 'pictureManage'
      }
  },
  {
      path: '/home/GenerateWord',
      component: (resolve) => require(['@/view/home/GenerateWord.vue'], resolve),
      name: 'GenerateWord',
      meta: {
          title: '文档生成', icon: 'GenerateWord', iconSelect: 'GenerateWord'
      }
  }
];

let HomeLeftMenu = [];
HomeRoutes.concat().forEach(route => {
  let map = {
    path: route.path,
    name: route.name,
    meta: route.meta
  }
  HomeLeftMenu.push(map)
})
export {
  HomeRoutes, // 在router.js使用
  HomeLeftMenu// home/index.vue中使用
}
